import request from "../request"

// 新增风险任务
export function addRiskTask(data){
  return request({
    url: "/car/risk/v/task/job",
    method: "post",
    data:data,
  });
}

// 新增跨站风险任务
export function batchAddRiskTask(data){
  return request({
    url: "/car/risk/v/task/batch",
    method: "post",
    data:data,
  });
}

// 风险任务管理列表
export function getRiskTaskQuery(data){
  return request({
    url: "/car/risk/v/task/query",
    method: "get",
    params:data,
  });
}

// 风险报告管理列表
export function getRiskReportQuery(data){
  return request({
    url: "/car/risk/v/report/query",
    method: "get",
    params:data,
  });
}

// 风险任务启动
export function riskTaskRun(data){
  return request({
    url: "/car/risk/v/task/run",
    method: "put",
    params:data,
  });
}

// 风险任务删除
export function deleteRiskTask(data){
  return request({
    url: "/car/risk/v/task/delete",
    method: "get",
    params:data,
  });
}

// 风险报告详情
export function getRiskReportDetail(data){
  return request({
    url: "/car/risk/v/report/detail",
    method: "get",
    params:data,
  });
}

// 风险等级
export function getRiskClass(data){
  return request({
    url: "/car/risk/v/class/query",
    method: "get",
    params:data,
  });
}

// 风险确认
export function getReportConfirm(data){
  return request({
    url: "/car/risk/v/report/confirm",
    method: "get",
    params:data,
  });
}

// 报告删除
export function deleteReport(data){
  return request({
    url: "/car/risk/v/report/delete",
    method: "get",
    params:data,
  });
}
